Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure DHT protocol ID matches Starknet spec #2291

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wojciechos
Copy link
Contributor

@wojciechos wojciechos commented Nov 28, 2024

Updated DHT protocol ID to use dht.ProtocolExtension(chainId) for setting the chain ID in the protocol format. Added a test to verify:
• /starknet/SN_SEPOLIA/kad/1.0.0 for Sepolia

This change ensures that the DHT protocol ID aligns with the latest Starknet specification.

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.41%. Comparing base (d9dcf6c) to head (ff56ae3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2291   +/-   ##
=======================================
  Coverage   75.41%   75.41%           
=======================================
  Files         107      107           
  Lines       11404    11404           
=======================================
  Hits         8600     8600           
  Misses       2151     2151           
  Partials      653      653           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wojciechos wojciechos force-pushed the wojciechos/p2p-protocol-name branch 3 times, most recently from c4f5ce3 to ee1b5ee Compare November 28, 2024 15:09
Use dht.ProtocolExtension to set chainID in  protocol ID format for DHT.
Add test to verify protocol ID format for different networks:
- /starknet/SN_SEPOLIA/kad/1.0.0 for Sepolia
- /starknet/SN_MAIN/kad/1.0.0 for Mainnet

The change ensures that DHT protocol follow latest Starknet
specification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant